/*
 * fbank.com Inc.
 * Copyright (c) 2020 All Rights Reserved.
 * create by fm
 * date:2020-04-26
 */
package com.ouwen.smartpay.entity;


import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.Table;

import com.fm.common.emuns.MessageType;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.*;

import javax.validation.constraints.*;

import com.fm.core.common.domain.AbstractEntity;

import java.util.Date;

/**
 * 商户管理 Entity
 *
 * @author fm
 * Date: 2020-04-26 11:00:17
 */
@Getter
@Setter
@Entity
@Table(name = "openapi_partner")
public class Partner extends AbstractEntity {
    /**
     * serialVersionUID
     */
    private static final long serialVersionUID = 1L;

    /**
     * 商户编码
     */
    @NotEmpty
    @Size(max = 32)
    private String partnerId;

    /**
     * 商户名称
     */
    @NotEmpty
    @Size(max = 32)
    private String partnerName;

    /**
     * 子商户编码
     */
    @Size(max = 32)
    private String subPartnerId;

    /**
     * 子商户名称
     */
    @Size(max = 32)
    private String subPartnerName;

    /**
     * 异步通知地址
     */
    private String notifyUrl;

    /**
     * 异步通知支持类型
     */
    @Enumerated(EnumType.STRING)
    private MessageType messageType;

    /**
     * 是否有效 0:无效 1:有效
     */
    private Integer status;

    /**
     * 备注
     */
    @Size(max = 128)
    private String comments;
}
